package main

import (
	"context"
	"rnet/logs"
	"rnet/util"
)

func InitConf(ctx context.Context,path string)  {
	config := &Config{}
	util.LoadConfAndUnMarshal(path,config)
	logs.CtxInfo(ctx,"%+v",config)
}

type Config struct {
	Server struct{
		Port int `json:"port"`
	} `json:"server"`
	Log struct{
		LogPath string `json:"log_path"`
		DevName string `json:"dev_name"`
	} `json:"log"`
}
